@ECHO OFF
:: 驱动类型3表示磁盘 5表示光驱
WMIC logicaldisk where drivetype="3" get caption,description,drivetype,filesystem,freespace,size
PAUSE